function OBJ_Chart()
{
    this.props = new Object();
    this.props.title = '';
    this.props.type = '';
    this.props.container = '';
    this.props.unit = '';
    this.props.categories = [];
    this.props.series = [];
}

OBJ_Chart.prototype.addSeries = function(name, data)
{
    this.props.series.push({name: name, data: data});
};

OBJ_Chart.prototype.render = function()
{
    this.props.unit === '' ? suffix = '' : suffix = ' ('+this.props.unit+')';

    $('#'+this.props.container).highcharts(
        {
            chart:
            {
                type: this.props.type
            },
            title:
            {
                text: this.props.title,
                x: -30
            },
            xAxis:
            {
                categories: this.props.categories
            },
            yAxis:
            {
                min: 0,
                allowDecimals: false,
                title:
                {
                    text: this.props.unit
                }
            },
            tooltip:
            {
                valueSuffix: suffix
            },
            legend:
            {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
            },
            series: this.props.series
        });
};